using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
using Microsoft.Xna.Framework.Content;

namespace Map
{
    class regularPellet
    { 
        Vector2 position;
        int points = 10;
        public regularPellet()
        {
            position = new Vector2(0.0f, 0.0f);
            points = 10;
        }

        public int Points
        {
            get { return points; }
            set { points = value; }
        }
        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }

        /*public int getPoints()
        {
            return points;
        }
        public void setPositon(Vector2 vec)
        {
            position = vec;
        }
        public Vector2 Position()
        {
            return position;
        }*/

        public List<regularPellet> InitRegularPellets()
        {
            
            regularPellet regPellet = new regularPellet();
            List<regularPellet> listOfSmallPellets = new List<regularPellet>(); 
            //Create regularPellets;
            for (int i = 0; i < 13; i++)
            {
                regPellet.Position = new Vector2(65, (i * 32) + 97);
                listOfSmallPellets.Add(regPellet);
                regPellet = new regularPellet();
                regPellet.Position = new Vector2(512, (i * 32) + 97);
                listOfSmallPellets.Add(regPellet);
                regPellet = new regularPellet();
                regPellet.Position = new Vector2((i * 32) + 97, 512);
                listOfSmallPellets.Add(regPellet);
                regPellet = new regularPellet();
                regPellet.Position = new Vector2((i * 31) + 101, 370);
                listOfSmallPellets.Add(regPellet);
                regPellet = new regularPellet();
                regPellet.Position = new Vector2((i * 31) + 101, 418);
                listOfSmallPellets.Add(regPellet);
                regPellet = new regularPellet();
                regPellet.Position = new Vector2((i * 31) + 101, 466);
                listOfSmallPellets.Add(regPellet);
                regPellet = new regularPellet();
                if (i > 0 && i < 12)
                {
                    regPellet.Position = new Vector2((i * 31) + 101, 322);
                    listOfSmallPellets.Add(regPellet);
                    regPellet = new regularPellet();
                }
                if (i > 0 && i < 12)
                {
                    regPellet.Position = new Vector2((i * 31) + 101, 114);
                    listOfSmallPellets.Add(regPellet);
                    regPellet = new regularPellet();
                }
                if (i < 3 || (i > 3 && i < 9) || i > 9)
                {
                    regPellet.Position = new Vector2((i * 31) + 101, 66);
                    listOfSmallPellets.Add(regPellet);
                    regPellet = new regularPellet();
                }
                if (i > 2 && i < 10)
                {
                    regPellet.Position = new Vector2((i * 31) + 101, 162);
                    listOfSmallPellets.Add(regPellet);
                    regPellet = new regularPellet();

                }
                if (i < 4)
                {
                    regPellet.Position = new Vector2((i * 31) + 242, 210);
                    listOfSmallPellets.Add(regPellet);
                    regPellet = new regularPellet();
                    if (i == 0 || i == 3)
                    {
                        regPellet.Position = new Vector2((i * 31) + 242, 247);
                        listOfSmallPellets.Add(regPellet);
                        regPellet = new regularPellet();
                        regPellet.Position = new Vector2((i * 31) + 242, 284);
                        listOfSmallPellets.Add(regPellet);
                        regPellet = new regularPellet();
                    }
                }
                if ((i > 1 && i < 4) || (i > 8 && i < 11) || i == 6)
                {
                    regPellet.Position = new Vector2((i * 31) + 101, 274);
                    listOfSmallPellets.Add(regPellet);
                    regPellet = new regularPellet();
                }
                if ((i > 1 && i < 4) || (i > 8 && i < 11))
                {
                    regPellet.Position = new Vector2((i * 31) + 101, 226);
                    listOfSmallPellets.Add(regPellet);
                    regPellet = new regularPellet();
                }
                if (i < 6)
                {
                    regPellet.Position = new Vector2(110, (i * 31) + 140);
                    listOfSmallPellets.Add(regPellet);
                    regPellet = new regularPellet();
                    regPellet.Position = new Vector2(465, (i * 31) + 140);
                    listOfSmallPellets.Add(regPellet);
                    regPellet = new regularPellet();
                }
            }
            return listOfSmallPellets;
        }

    }
}